{extend name="$_admin_base_layout" /}
{block name="style"}
<style>
    .filtrate .dropdown-menu {
        max-width: 80px;
        min-width: 80px;
    }
</style>
{/block}
{block name="content"}

<div class="row">
    <div class="col-md-12">
        <div class="block block-bordered">
            <div class="block-header bg-gray-lighter">
                <h3 class="block-title">访问概况</h3>
            </div>
            <table class="table table-borderless table-striped table-vcenter">
                <thead>
                <tr>
                    <th class="text-left">时间</th>
                    <th class="text-left">访问量(IP)</th>
                    <th>浏览量(PV)</th>
                </tr>
                </thead>
                <tbody>
                {volist name="list" key="k" id="v"}
                <tr>
                    <td class="text-left"><strong>{$v.date}</strong></td>
                    <td class="text-left"><strong>{$v.ip_num_total}</strong></td>
                    <td class="text-left"><strong>{$v.pv_num_total}</strong></td>
                </tr>
                {/volist}
                </tbody>
            </table>
        </div>
    </div>
</div>


<div class="row">
    <div class="col-md-12">
        <div class="block block-rounded">
            <div class="block-header">
                <div class="col-md-6">
                    <form class="form-inline" method="get">
                        <div class="form-group">
                            <input class="form-control" name="date" type="radio" value="1" {if condition="$date == 1"} checked {/if} >昨日</input>
                            <input class="form-control" name="date" type="radio" value="0" {if condition="$date == 0"} checked {/if} >今日</input>
                            <input class="form-control" name="date" type="radio" value="7" {if condition="$date == 7"} checked {/if} >七日内</input>
                            <button class="btn btn-default" type="submit">查询</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-md-6">
        <div class="block block-bordered">
            <div class="block-header bg-gray-lighter">

                <h3 class="block-title">终端</h3>
            </div>
            <table class="table table-borderless table-striped table-vcenter">
                <thead>
                <tr>
                    <th class="text-left">名称</th>
                    <th>访问量(IP)</th>
                    <th class="text-right">浏览量(PV)</th>
                </tr>
                </thead>
                <tbody>

                {volist name="equ_list" key="ek" id="equ"}
                <tr>
                    <td class="text-left"><strong>{$equ.equ}</strong></td>
                    <td class="text-right"><strong>{$equ.ip_num_total}</strong></td>
                    <td class="text-right"><strong>{$equ.pv_num_total}</strong></td>
                </tr>
                {/volist}
                </tbody>
            </table>
        </div>
    </div>
    <div class="col-md-6">
        <div class="block block-bordered">
            <div class="block-header bg-gray-lighter">
                <h3 class="block-title">地区排行</h3>
            </div>
            <table class="table table-borderless table-striped table-vcenter">
                <thead>
                <tr>
                    <th class="text-left">国家</th>
                    <th class="text-left">地区</th>
                    <th>贡献IP</th>
                    <th class="text-right">比例</th>
                </tr>
                </thead>
                <tbody>
                {volist name="address_list" key="ak" id="address"}
                <tr style="">
                    <td class="text-left"><strong>{$address.country_code}</strong></td>
                    <td class="text-left"><strong>{$address.continent_code}</strong></td>
                    <td class="text-left"><strong>{$address.ip_num_total}</strong></td>
                    <td class="text-right"><strong>{$address.scale}</strong></td>
                </tr>
                {/volist}
                </tbody>
            </table>
        </div>
    </div>

</div>


{/block}

{block name="script"}

{/block}
